from django.conf.urls import url
# from orders.views import CreateOrderView,CommentOrderView,HandleOrderView
from .views import CreateOrderView, CommentOrderView, HandleOrderView

urlpatterns=[
    # 创建和获取所有订单信息
    url(r'^api/v1.0/orders$',CreateOrderView.as_view()),
    # 评论订单
    url(r'^api/v1.0/orders/(?P<order_id>\d+)/comment$',CommentOrderView.as_view()),
    # 房东接单或者拒单
    url(r'^api/v1.0/orders/(?P<order_id>\d+)/status$',HandleOrderView.as_view()),
]
